{# empty Twig template #}
{# empty Twig template #}
{# empty Twig template #}
{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}
    
    {% block content %}
        <div class="col-lg-12">
            <h2><center>{{ tached.user.nomUser }} {{ tached.user.prenomUser }} - Service : {{ tached.user.service.nomService }}</center></h2>
        </div>
        <div class="col-lg-12">
            <hr align="center" width="90%" size="5">
            <h2>{{ tached.nomTache }}
            <br><small>{{ tached.phasePlanifiee.Phase.nomPhase }}</small>
            <br><small>{{ tached.phasePlanifiee.ProcedurePlanifiee.acProcedure.nomProcedure }}</small>
            </h2>
        </div>
        <div class="col-lg-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">Planning</h3>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover table-striped tablesorter">
                            <thead>
                                <tr>
                                    <th width="25%">Date de début planifiée</th>
                                    <th width="25%">Date de fin planifiée</th>
                                    <th width="25%">Date de début réel</th>
                                    <th width="25%">Date de fin réel</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>{{ tached.dateDebutTheo|date('d-m-Y') }}</td>
                                    <td>{{ tached.dateFinTheo|date('d-m-Y') }}</td>
                                    <td>{{ tached.dateDebutReel|date('d-m-Y') }}</td>
                                    <td>{{ tached.dateFinReel|date('d-m-Y') }}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">Avancement : {{ tached.avancementTache }} %</h3>
                </div>
                <div class="panel-body">
                    <div class="bs-example">
                        <div class="progress progress-striped active">
                            <div class="progress-bar" style="width:{{ tached.avancementTache }}%"></div>
                        </div>
                    </div>
                </div>  
            </div>
        </div>
        <div class="col-lg-6">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">Commentaires</h3>
                </div>
                <div class="panel-body">
                    {{ tached.commentaires }}
                </div>  
            </div>
        </div>
        <div class="col-lg-6">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">Résultat</h3>
                </div>
                <div class="panel-body">
                    {{ tached.resultatTache }}
                </div>  
            </div>
        </div>
        <div class="col-lg-12">
            <hr align="center" width="90%" size="5">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">Autres tâches affectées à {{ tached.user.nomUser }} {{ tached.user.prenomUser }}</h3>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover table-striped tablesorter">
                            <thead>
                                <tr>
                                    <th width="30%">Tâche <i class="fa fa-sort"></i></th>
                                    <th width="30%">Phase associée <i class="fa fa-sort"></i></th>
                                    <th width="30%">Procédure associée <i class="fa fa-sort"></i></th>
                                    <th width="10%"><center>Détail </center></th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for tache in list_tache %}
                                    {% if tache.Operation.nomOperation != tached.Operation.nomOperation %}
                                        <tr>
                                            <td>{{ tache.nomTache }}</td>
                                            <td>{{ tache.phasePlanifiee.Phase.nomPhase }}</td>
                                            <td>{{ tache.phasePlanifiee.ProcedurePlanifiee.acProcedure.nomProcedure }}</td>
                                            <td><center><a href="{{ path('cnam_actiman_control_menuVisualiserAgent', {'idtache':tache.id, 'iduser':tache.user.id}) }}"><i class="fa fa-eye"> Visualiser</i></a></center></td>
                                        </tr>
                                    {% endif %}
                                {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    {% endblock%}
    
{% endblock%}{# empty Twig template #}
